class Person:
    def hello(self):
        print('hello')

    def goodbye(self):
        print('goodbye')


user = Person()
getattr(user, 'hello')()
if hasattr(user, 'goodbye'):
    print('has')

from importlib import import_module
m = import_module('random')
v1 = m.randint(1, 100)
print(v1)
